package com.cbtx.module.base.ui

import android.os.Bundle
import androidx.lifecycle.ViewModelProviders
import com.cbtx.module.base.vm.BaseVM
import com.txcb.lib.base.ui.BaseFragment

open abstract class  BaseMMFragment2<VM : BaseVM> : BaseFragment()  {

    lateinit var mVM:VM

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        mVM = ViewModelProviders.of(this).get(getPresenterClazz())

    }


    abstract fun getPresenterClazz() : Class<VM>



}